package com.kotodama.application.services;

import com.kotodama.domain.entities.Tenant;
import com.kotodama.domain.repositories.TenantRepository;
import org.springframework.stereotype.Service;

@Service
public class TenantManagementService {
    private final TenantRepository repo;

    public TenantManagementService(TenantRepository repo) {
        this.repo = repo;
    }

    public Tenant create(Tenant tenant) {
        return repo.save(tenant);
    }
}
